import cv2

def main():
    img = cv2.imread('9/lena_gray.jpg', 0)

    Laplacian = cv2.Laplacian(src=img, ddepth=cv2.CV_64F, ksize=5)
    Laplacian = cv2.convertScaleAbs(Laplacian)

    cv2.imshow('Laplacian', Laplacian)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

if __name__ == '__main__':
    main()